package org.example.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.admin.dto.ShowCart;
import org.example.admin.mapper.CartMapper;
import org.example.admin.service.CartService;
import org.example.entity.Cart;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CartServiceImpl extends ServiceImpl<CartMapper, Cart> implements CartService {

    @Resource
    private CartMapper cartMapper;

    @Override
    public List<ShowCart> getSelectCart(Integer id) {
        return cartMapper.getSelectCart(id);
    }
}
